#ifndef __CONVERT_VALUE_ENDIAN_H__
#define __CONVERT_VALUE_ENDIAN_H__
#include <typescommon.h>

// overturn short if big system
uint16_t ovtBigSys16(int16_t value);
#define ovtBigSysPro16(value) value = ovtBigSys16(value)

#if DEVICE_PLATFORM_CONFIGURE != DEVICE_PLATFORM_C51_MCU
uint16_t ovtLitSysI16(int16_t value);
#define ovtLitSysProI16(value) value = ovtLitSysI16(value)

uint32_t ovtBigSys32(uint32_t value);
#define ovtBigSysPro32(value) value = ovtBigSys32(value)

uint32_t ovtLitSys32(uint32_t value);
#define ovtLitSysPro32(value) value = ovtLitSys32(value)

float ovtBigSysFloat(float value);
#define ovtBigSysProFloat(value) value = ovtBigSysFloat(value)

float ovtLitSysFloat(float value);
#define ovtLitSysProFloat(value) value = ovtLitSysFloat(value)

uint64_t ovtBigSys64(uint64_t value);
#define ovtBigSysPro64(value) value = ovtBigSys64(value)

uint64_t ovtLitSys64(uint64_t value);
#define ovtLitSysPro64(value) value = ovtLitSys64(value)

double ovtBigSysDble(double value);
#define ovtBigSysProDble(value) value = ovtBigSysDble(value)

double ovtLitSysDble(double value);
#define ovtLitSysProDble(value) value = ovtLitSysDble(value)
#endif

#endif
